package com.shiro.service;

import com.shiro.mapper.UserMapper;
import com.shiro.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ZhangJunqi
 * @Date 2022/3/8 -22:57
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;
    public List<User> queryUser(){
        return userMapper.queryUser ();
    }

    public User getUserByName(String userName) {
        return userMapper.getUserByName(userName);
    }

    public int updateUser(User user) {
        return userMapper.updateUser(user);
    }
}
